package com.nsqt.biz.domain;

import java.io.Serializable;

/**
 * 软件
 */
public class SoftwareDO implements Serializable {
    private static final long serialVersionUID = 1L;
    //序号
    private Integer id;
    //交件日期
    private String submitDate;
    //流水号
    private String sn;
    //业务类型
    private Integer businessType;
    //撤回流水号
    private String backsn;
    //著作权人
    private String copyrightOwner;
    //软著名称
    private String softwareName;
    //业务员
    private Integer businessMan;
    //出证日期
    private String approvalDate;
    //原价（折前价）
    private String price;
    //代理公司
    private String agentCompany;


    //代理公司
    private String agentName;
    //工作日
    private Integer workDays;
    //是否写材料
    private Integer type;
    //补正
    private Integer needSupp;
    //补正日期
    private String suppDate;
    //补正原因
    private String suppReason;
    //补正处理过程
    private String suppProcess;
    //补正结果
    private String suppResult;
    //状态
    private Integer status;
    //特殊情况备注
    private String comments;
    //改工作日状态
    private String businessManName;
    private Integer chstatus;
    //发证时间
    private String approvalTime;
    private Integer price31;
    private Integer price26;
    private Integer price21;
    private Integer price16;
    private Integer price11;
    private Integer price6;
    private Integer price5;
    private Integer price4;
    private Integer price3;
    private Integer price2;
    private Integer price1;

    public String getBusinessManName() {
        return businessManName;
    }

    public void setBusinessManName(String businessManName) {
        this.businessManName = businessManName;
    }

    public Integer getPrice31() {
        return price31;
    }

    public void setPrice31(Integer price31) {
        this.price31 = price31;
    }

    public Integer getPrice26() {
        return price26;
    }

    public void setPrice26(Integer price26) {
        this.price26 = price26;
    }

    public Integer getPrice21() {
        return price21;
    }

    public void setPrice21(Integer price21) {
        this.price21 = price21;
    }

    public Integer getPrice16() {
        return price16;
    }

    public void setPrice16(Integer price16) {
        this.price16 = price16;
    }

    public Integer getPrice11() {
        return price11;
    }

    public void setPrice11(Integer price11) {
        this.price11 = price11;
    }

    public Integer getPrice6() {
        return price6;
    }

    public void setPrice6(Integer price6) {
        this.price6 = price6;
    }

    public Integer getPrice5() {
        return price5;
    }

    public void setPrice5(Integer price5) {
        this.price5 = price5;
    }

    public Integer getPrice4() {
        return price4;
    }

    public void setPrice4(Integer price4) {
        this.price4 = price4;
    }

    public Integer getPrice3() {
        return price3;
    }

    public void setPrice3(Integer price3) {
        this.price3 = price3;
    }

    public Integer getPrice2() {
        return price2;
    }

    public void setPrice2(Integer price2) {
        this.price2 = price2;
    }

    public Integer getPrice1() {
        return price1;
    }

    public void setPrice1(Integer price1) {
        this.price1 = price1;
    }

    /**
     * 获取：序号
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置：序号
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：交件日期
     */
    public String getSubmitDate() {
        return submitDate;
    }

    /**
     * 设置：交件日期
     */
    public void setSubmitDate(String submitDate) {
        this.submitDate = submitDate;
    }

    /**
     * 获取：流水号
     */
    public String getSn() {
        return sn;
    }

    /**
     * 设置：流水号
     */
    public void setSn(String sn) {
        this.sn = sn;
    }

    /**
     * 获取：业务类型
     */
    public Integer getBusinessType() {
        return businessType;
    }

    /**
     * 设置：业务类型
     */
    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    /**
     * 获取：撤回流水号
     */
    public String getBacksn() {
        return backsn;
    }

    /**
     * 设置：撤回流水号
     */
    public void setBacksn(String backsn) {
        this.backsn = backsn;
    }

    /**
     * 获取：著作权人
     */
    public String getCopyrightOwner() {
        return copyrightOwner;
    }

    /**
     * 设置：著作权人
     */
    public void setCopyrightOwner(String copyrightOwner) {
        this.copyrightOwner = copyrightOwner;
    }

    /**
     * 获取：软著名称
     */
    public String getSoftwareName() {
        return softwareName;
    }

    /**
     * 设置：软著名称
     */
    public void setSoftwareName(String softwareName) {
        this.softwareName = softwareName;
    }

    /**
     * 获取：业务员
     */
    public Integer getBusinessMan() {
        return businessMan;
    }

    /**
     * 设置：业务员
     */
    public void setBusinessMan(Integer businessMan) {
        this.businessMan = businessMan;
    }

    /**
     * 获取：出证日期
     */
    public String getApprovalDate() {
        return approvalDate;
    }

    /**
     * 设置：出证日期
     */
    public void setApprovalDate(String approvalDate) {
        this.approvalDate = approvalDate;
    }

    /**
     * 获取：原价（折前价）
     */
    public String getPrice() {
        return price;
    }

    /**
     * 设置：原价（折前价）
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * 获取：代理公司
     */
    public String getAgentCompany() {
        return agentCompany;
    }

    /**
     * 设置：代理公司
     */
    public void setAgentCompany(String agentCompany) {
        this.agentCompany = agentCompany;
    }

    /**
     * 获取：工作日
     */
    public Integer getWorkDays() {
        return workDays;
    }

    /**
     * 设置：工作日
     */
    public void setWorkDays(Integer workDays) {
        this.workDays = workDays;
    }

    /**
     * 获取：是否写材料
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置：是否写材料
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取：补正
     */
    public Integer getNeedSupp() {
        return needSupp;
    }

    /**
     * 设置：补正
     */
    public void setNeedSupp(Integer needSupp) {
        this.needSupp = needSupp;
    }

    /**
     * 获取：补正日期
     */
    public String getSuppDate() {
        return suppDate;
    }

    /**
     * 设置：补正日期
     */
    public void setSuppDate(String suppDate) {
        this.suppDate = suppDate;
    }

    /**
     * 获取：补正原因
     */
    public String getSuppReason() {
        return suppReason;
    }

    /**
     * 设置：补正原因
     */
    public void setSuppReason(String suppReason) {
        this.suppReason = suppReason;
    }

    /**
     * 获取：补正处理过程
     */
    public String getSuppProcess() {
        return suppProcess;
    }

    /**
     * 设置：补正处理过程
     */
    public void setSuppProcess(String suppProcess) {
        this.suppProcess = suppProcess;
    }

    /**
     * 获取：补正结果
     */
    public String getSuppResult() {
        return suppResult;
    }

    /**
     * 设置：补正结果
     */
    public void setSuppResult(String suppResult) {
        this.suppResult = suppResult;
    }

    /**
     * 获取：状态
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置：状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取：特殊情况备注
     */
    public String getComments() {
        return comments;
    }

    /**
     * 设置：特殊情况备注
     */
    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public Integer getChstatus() {
        return chstatus;
    }

    public void setChstatus(Integer chstatus) {
        this.chstatus = chstatus;
    }

    public String getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(String approvalTime) {
        this.approvalTime = approvalTime;
    }

    public int getPrice(int workDays) {

        int price = 0;
        switch (workDays) {
            case 31:
                price = 300;
                break;
            case 26:
                price = 400;
                break;
            case 21:
                price = 700;
                break;
            case 16:
                price = 1000;
                break;
            case 11:
                price = 1500;
                break;
            case 6:
                price = 2000;
                break;
            case 5:
                price = 3000;
                break;
            case 4:
                price = 4000;
                break;
            case 3:
                price = 5000;
                break;
            case 2:
                price = 10000;
                break;
            case 1:
                price = 20000;
                break;
            default:
                price = 300;

        }
        return price;
    }

    public String toString() {
        StringBuffer softwareInfo = new StringBuffer();
        softwareInfo.append("id:" + this.getId());
        softwareInfo.append("\nsubmitDate:" + this.getSubmitDate());
        softwareInfo.append("\nsn:" + this.getSn());
        softwareInfo.append("\nbusinessType:" + this.getBusinessType());
        softwareInfo.append("\nbusinesMan:" + this.getBusinessMan());
        softwareInfo.append("\nsoftwareName:" + this.getSoftwareName());
        softwareInfo.append("\ncopyrightOwner:" + this.getCopyrightOwner());
        softwareInfo.append("\nworkdays:" + this.getWorkDays());
        softwareInfo.append("\nprice:" + this.getPrice());
        softwareInfo.append("\n发证日期:" + this.getApprovalDate());
        softwareInfo.append("\n是否写材料:" + this.getType());


        return softwareInfo.toString();
    }
}
